<?php

/*
 * The loader will load the basics needed to run this framework.
 * 
 * 
 *  
 */
define('LIVE_MODE', 'live');
define('DEVEL_MODE', 'dev');

require SYS_PATH . 'function/common' . EXT;


/* Require and Set the exception class */
load_class('xiecx_exception_handler', 'core');
set_exception_handler(array("xiecx_exception_handler", "handler"));

/* Load the core */
load_class('xiecx', 'core');
$_xiecx = new xiecx();


/* Load core MCV */
//load_class('xiecx_controller', 'core');
//load_class('xiecx_model', 'core');
//load_class('xiecx_view', 'core');

/* Load the core controller */
load_class(base_controller, 'base');
$bc = new base_controller();
$bc->{base_function}();